Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Quotation structure casting to json #7

Merged
merged 1 commit into from
Sep 2, 2023

Conversation

light-flight
Copy link
Contributor

Using ruby 3.2.2
Posting create_order request. Struct invalidates request.

https://github.com/blackchestnut/invest_tinkoff/blob/master/lib/invest_tinkoff/client_base.rb#L31

=> body.to_json

"{ ..., \"price\":\"#<struct InvestTinkoff::V2::Quotation units=200, nano=0>\", ...}"

Added custom json type cast to Quotation

@blackchestnut blackchestnut self-assigned this Sep 2, 2023
@blackchestnut blackchestnut merged commit 809b4a5 into blackchestnut:master Sep 2, 2023
@blackchestnut
Copy link
Owner

@light-flight many thanks for your hotfix. I hope it worked for you... merged without testing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants